package com.wsj.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.wsj.util.page.PageResultSet;
import com.wsj.web.form.search.HomeSiteSearchHotKeyForm;
import com.wsj.web.vo.homeSite.ComAdType;
import com.wsj.web.vo.homeSite.HomeSiteSearchHotKey;

public interface IHomeSiteSearchHotKeyDao {

	void addHomeSiteSearchHotKeyDao(HomeSiteSearchHotKey homeSiteSearchHotKey) throws DataAccessException;

	ComAdType loadComAdTypeByIdDao(Integer comAdTypeId);

	List loadHomeSiteSearchHotKeyByComAdTypeIdAndKeywordsDao(Integer id,String keywords, Integer comAdTypeId, String addOrUpdate);


	PageResultSet loadHomeSiteSearchHotKeyListDao(Integer page,Integer pageSize,HomeSiteSearchHotKeyForm homeSiteSearchHotKeyForm);

	HomeSiteSearchHotKey loadHomeSiteSearchHotKeyByIdDao(Integer id);

	void updateHomeSiteSearchHotKeyDao(HomeSiteSearchHotKey homeSiteSearchHotKey);

	List loadTopHotKeyListDao(String typeName, Integer top);
}
